// title-case.pipe.ts
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'titleCase'
})
export class TitleCasePipe implements PipeTransform {
  transform(value: string): string {
    return value.replace(/_/g, ' ')
      .replace(/\b\w/g, char => char.toUpperCase());
  }
}
